<?php

// +----------------------------------------------------------
// | Trainingsessies
// +----------------------------------------------------------
// | Thomas More Kempen - 2 TI - 201x-201x
// +----------------------------------------------------------
// | Gebruikers overzicht
// |
// +----------------------------------------------------------
// | Nicola Beysen
// +----------------------------------------------------------
?>

<?php

echo "<table id='overzicht' class='fancy' width='800'>";

echo "<tr><th></th><th>Naam</th><th>r-nummer</th><th>Groep PV</th><th>Team</th></tr>";

for ($i = 0; $i < count($gebruikers); $i++) {
    $gebruiker = $gebruikers[$i];

    echo "<tr id=\"row" . $gebruiker->id . "\">";
    echo "<td align='center'>" . ($i + 1) . "</td>";
    echo "<td>" . $gebruiker->naam . "</td>\n";
    echo "<td>" . $gebruiker->rnummer . "</td>\n";
    echo "<td>" . $gebruiker->groeppv . "</td>\n";
    echo "<td>" . $gebruiker->account->gebruikersnaam . "</td>\n";
    echo "<td width='20px' align='center'><a class='detail' href='#' data-id='" . $gebruiker->id . "'><img src='" . base_url() . APPPATH . "images/icons/16x16/pencil.png' height='12px' width='12px' style='border-style: none'></a></td>\n";
    echo "<td width='20px' align='center'><a class='delete' href='#' data-id='" . $gebruiker->id . "'><img src='" . base_url() . APPPATH . "images/icons/16x16/delete.png' height='12px' width='12px' style='border-style: none'></a></td>";
    echo "</tr>\n";
}

echo "</table>";
?>